class CnFollowModel {
  String userId;
  int userType;
  String nickname;
  int gender;
  bool isSpecialFollow;
  String onlineStatus;
  int level;
  bool isVip;

  String about;

  int age;

  String avatar;

  String avatarThumbUrl;

  String avatarUrl;

  String birthday;

  String country;

  String favors;

  String language;

  int unitPrice;

  String vipExpiryTime;

  factory CnFollowModel.coverFromJson(dynamic model) => CnFollowModel(
      userId: model['userId'] ?? "",
      nickname: model['nickname'] ?? "",
      avatarUrl: model['avatarUrl'] ?? "",
      gender: model['gender'] ?? 1,
      avatarThumbUrl: model['avatarThumbUrl'] ?? "",
      unitPrice: model['unitPrice'] ?? 0,
      country: model['country'] ?? "",
      age: model['age'] ?? 0,
      avatar: model['avatar'] ?? "",
      about: model['about'] ?? "",
      birthday: model['birthday'] ?? "",
      favors: model['favors'] ?? "",
      isSpecialFollow: model['isSpecialFollow'] ?? false,
      isVip: model['isVip'] ?? false,
      language: model['language'] ?? "",
      level: model['level'] ?? 0,
      onlineStatus: model['onlineStatus'] ?? "",
      userType: model['userType'] ?? "",
      vipExpiryTime: model['vipExpiryTime'] ?? "");

  CnFollowModel(
      {required this.userId,
      required this.nickname,
      required this.avatarUrl,
      required this.gender,
      required this.avatarThumbUrl,
      required this.unitPrice,
      required this.country,
      required this.age,
      required this.avatar,
      required this.about,
      required this.birthday,
      required this.favors,
      required this.isSpecialFollow,
      required this.isVip,
      required this.language,
      required this.level,
      required this.onlineStatus,
      required this.userType,
      required this.vipExpiryTime});

  @override
  String toString() {
    return 'CnFollowModel{nickname: $nickname}';
  }
}
